<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="__JS__/validfrom/css/style.css" type="text/css" media="all" />
<link href="__JS__/validfrom/css/demo.css" type="text/css" rel="stylesheet" />
<link href="__JS__/validfrom/plugin/jqtransform/jqtransform.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="__JS__/validfrom/js/Validform_v5.2_min.js"></script>
<script type="text/javascript" src="__JS__/validfrom/plugin/jqtransform/jquery.jqtransform-min.js"></script>
<script src="__JS__/popup/popup.js"></script>
<script src="__JS__/popup/user.js"></script>
<title>{$title|default=''}</title>
<script>
	$(document).ready(function(){
		
		$(".registerform").Validform({
			tiptype:function(msg,o,cssctl){
				if(!o.obj.is("form")){
					var objtip=o.obj.parents("td").next().find(".Validform_checktip");
					cssctl(objtip,o.type);
					objtip.text(msg);
				}

			},
			usePlugin:{
				//jqtransform:{}
			},
			ajaxPost:true,
			callback:function(data){
				alert(data.info);
				if(data.status=="y"){
					parent.window.location.reload();
					/*setTimeout(function(){
						$.Hidemsg(); //公用方法关闭信息提示框;显示方法是$.Showmsg("message goes here.");
					},2000);
					*/
				}
			}
		});
		
		$(".selectSt").click(function(){
			var url="?g=Admin&m=Team&a=stlist";
			pDialog('服务队列表',url,700,450);
		});
		
		
	});
	function setFuncVal(f1,f2){
		$("#ST_NAME").val(f1);
		$("#ST_ID").val(f2);
		pclose();
	}
	
</script>
<style>
body{background-color:#ffffff}
</style>
</head>
 

	<form action="{$action}" method="post" class="registerform" id="roleForm">
		<fieldset style="margin-top:5px;">
    		<legend >安装人员管理</legend>
    		
    		<table width="100%">
    			 <tr>
                    <td class="need" style="width:10px;"><span class="inputYes">*</span></td>
                    <td style="width:70px;">会员名</label>：</td>
                    <td style="">
                    <if condition="$edit eq 'y'">
                    	<input type="text" id="U_NAME" value="{$uData.U_NAME}" name="data[U_NAME]" class="inputxt" datatype="*"  />
                    <else />
                    	<input type="text" id="U_NAME" value="{$uData.U_NAME}" name="data[U_NAME]" class="inputxt" datatype="*"   ajaxurl="?g=Admin&m=User&a=checkUInfo"/>
                    </if>
                    </td>
                    <td><div class="Validform_checktip">请输入会员名</div></td>
                </tr>
                <tr>
                    <td class="need" style="width:10px;"><span class="inputYes">*</span></td>
                    <td style="width:70px;">姓名</label>：</td>
                    <td style="width:205px;"><input type="text" id="U_RNAME" name="data[U_RNAME]" value="{$uData.U_RNAME}" class="inputxt" datatype="*"  /></td>
                    <td><div class="Validform_checktip">请输入姓名</div></td>
                </tr>
               <if condition="$edit neq 'y'">
                 <tr>
                    <td class="need" style="width:10px;"><span class="inputYes">*</span></td>
                    <td style="width:70px;">密码：</td>
                    <td style="width:205px;"><input type="password" id="U_PWD" name="data[U_PWD]" class="inputxt" datatype="*6-16" nullmsg="请设置密码！" errormsg="密码范围在6~16位之间！" /></td>
                    <td><div class="Validform_checktip"></div></td>
                </tr>
                <tr>
                    <td class="need"><span class="inputYes">*</span></td>
                    <td style="width:205px;">确认密码：</td>
                    <td><input type="password" id="U_PWD1" name="data[U_PWD1]" class="inputxt" datatype="*" recheck="data[U_PWD]" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！" /></td>
                    <td><div class="Validform_checktip"></div></td>
                </tr>
                </if>
                <tr>
                    <td class="need"><span class="inputYes">*</span></td>
                    <td>手机：</td>
                    <td>
                    <if condition="$edit eq 'y'">
                    	<input type="text" id="U_MOBILE" name="data[U_MOBILE]" value="{$uData.U_MOBILE}" class="inputxt" datatype="m" errormsg="请输入您的手机号码！" />
                    <else />
                    	<input type="text" id="U_MOBILE" name="data[U_MOBILE]" value="{$uData.U_MOBILE}" class="inputxt" datatype="m" errormsg="请输入您的手机号码！"  ajaxurl="?g=Admin&m=User&a=checkUInfo" />
                    </if>
                    
                    </td>
                    <td><div class="Validform_checktip">请输入手机</div></td>
                </tr>
                <tr>
                    <td class="need"><span class="inputYes">*</span></td>
                    <td>邮箱：</td>
                    <td>
                    <if condition="$edit eq 'y'">
                    	<input type="text" id="U_EMAIL" name="data[U_EMAIL]" value="{$uData.U_EMAIL}" class="inputxt" datatype="e" errormsg="请输入您的邮箱！"  /></td>
                    <else />
                    	<input type="text" id="U_EMAIL" name="data[U_EMAIL]" value="{$uData.U_EMAIL}" class="inputxt" datatype="e" errormsg="请输入您的邮箱！"   ajaxurl="?g=Admin&m=User&a=checkUInfo"/></td>
                    </if>
                    
                    
                    <td><div class="Validform_checktip">请输入邮箱</div></td>
                </tr>
                
                 <tr>
                    <td class="need"></td>
                    <td>固定电话：</td>
                    <td><input type="text" id="U_PHONE" name="data[U_PHONE]" value="{$uData.U_PHONE}" class="inputxt"  /></td>
                    <td><div class="Validform_checktip">请输入固定电话</div></td>
                </tr>
                 <tr>
                    <td class="need"><span class="inputYes">*</span></td>
                    <td>服务队：</td>
                    <td>
                    <input type="text" id="ST_NAME" name="data[ST_NAME]" class="inputxt" datatype="*" value="{$sname}" /><a href="#" class="selectSt">[选择]</a>
		    		 		<input type="hidden" id="ST_ID" name="data[ST_ID]"  class="inputxt" value="{$sid}" />
                    </td>
                    <td><div class="Validform_checktip">请选择服务队</div></td>
                </tr>
                
            </table>
		</fieldset>
		
    	<fieldset class="action">
    	<input type="hidden" name="data[U_ID]" value="{$uData.U_ID}">
    	<input type="hidden" name="uid" value="{$uid}">
    	<input type="hidden" name="op" value="1">
    				<input type="submit" name="submit" id="submit" value="保存" />
    	</fieldset>
    	
	</form>
</div>

</body>